<?php
      $json_arr = array("key1"=>"value1" , "key2" => "value2");

      echo json_encode($json_arr);
?>